﻿using ProTrack.Utility;
using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Entity
{
    /// <summary>
    /// 设备台账类
    /// </summary>
    public class Machinery
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string MachineryCode { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string MachineryName { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public string MachineryBrand { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string MachinerySpec { get; set; }

        /// <summary>
        /// 设备所属分类ID
        /// </summary>
        public long MachineryTypeId { get; set; }

        /// <summary>
        /// 设备所属分类编码
        /// </summary>
        public string MachineryTypeCode { get; set; }

        /// <summary>
        /// 设备所属分类名称
        /// </summary>
        public string MachineryTypeName { get; set; }

        /// <summary>
        /// 位置
        /// </summary>
        public string Location { get; set; }

        /// <summary>
        /// 所属车间ID
        /// </summary>
        public long WorkshopId { get; set; }

        /// <summary>
        /// 所属车间编码
        /// </summary>
        public string WorkshopCode { get; set; }

        /// <summary>
        /// 所属车间名称
        /// </summary>
        public string WorkshopName { get; set; }

        /// <summary>
        /// 设备状态
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = StringHelper.GetTimeNow();

        /// <summary>
        /// 更新者
        /// </summary>
        public string Updater { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Deleted { get; set; }

        /// <summary>
        /// 产能
        /// </summary>
        public string Capacity { get; set; }

        /// <summary>
        /// PCL型号
        /// </summary>
        public string PclModel { get; set; }

        /// <summary>
        /// 购买日期
        /// </summary>
        public DateTime PurchasingTime { get; set; }

        /// <summary>
        /// 分配用户
        /// </summary>
        public string AssignUser { get; set; }
    }

}
